package org.camunda.bpm.getstarted.loanapproval.listener;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.DelegateTask;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.camunda.bpm.engine.delegate.TaskListener;
import org.camunda.bpm.getstarted.loanapproval.utils.ApplicationContextUtils;

public class RegisterStartListener implements JavaDelegate {
//    @Override
//    public void notify(DelegateTask delegateTask) {
//        System.out.println("登记任务开始--->执行监听器");
//    }

    @Override
    public void execute(DelegateExecution delegateExecution) throws Exception {
        System.out.println("登记任务开始--->执行监听器");
        System.out.println(ApplicationContextUtils.getApplicationContext());

    }
}
